<link href="../addons/jy_zhongyi/resource/css/weui.css" rel="stylesheet">
<link href="../addons/jy_zhongyi/resource/css/zan.css" rel="stylesheet">
<link href="../addons/jy_zhongyi/resource/css/order.css" rel="stylesheet">
<style>
 
        html,
        body {
            position: static;
            height: auto;
            -webkit-overflow-scrolling: touch;
            /* background: #fff; */
        }

        .weui-navbar .weui-navbar__item {
            background: #fff;
            padding: 15px 0;
            border-bottom: none;
            white-space: nowrap;
            font-size: 14px;
            position: relative;
            color: #333;
        }

        .weui-navbar .weui-navbar__item.lyb-active .weui-navbar__item__text {
            padding: 0;
            color: #C03E3E;
            background: transparent;
        }

        .weui-navbar .weui-navbar__item .weui-navbar__item__underline {
            height: 2px;
            width: 56px;
            position: absolute;
            left: 50%;
            bottom: 5px;
            -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
            border-radius: 2px;
            background: #c03e3e;
            display: none;
        }

        .weui-navbar .weui-navbar__item.lyb-active .weui-navbar__item__underline {
            display: inline-block;
        }

        .custom-classname .weui-actionsheet__action .weui-actionsheet__cell {
            color: #DBAB7C;
        }

        .lyb-btn {
            border: 1px solid rgba(0, 0, 0, 0.2);
            border-radius: 2px;
            font-size: 12px;
            margin: 0;
            display: inline-block;
            padding: 0 10px;
            line-height: 2;
            color: #222222;
        }
		.order_list_ul li {
			border-right: 1px solid #f7f7f7;
		}
		.order_list_ul li p {
			margin: 0;
			text-align: center;
		}
		.order_list_ul li p:nth-of-type(1) {
			font-size: 12px;
			color: #969799;
		}
		.order_list_ul li p:nth-of-type(2) {
			line-height: 24px;
			font-weight: 600;
			margin-top: 4px;
		}
		.order_list_ul li:last-child {
			border-right: 0;
		}
		
		.order-list-shadow {
			box-shadow: 3px 2px 14px #eee;
		}
		.color {
			color: #C03E3E;
		}
		.expressage.more:after, .expressageSelf.more:after{
			right: 12px;
		}
    
</style>
<div class='fui-page order-create-page'>
<div class="align-items-center listTopPo row"  style="z-index: 2009;margin:0" id="appoint_title">
	<div class="select-appoint after-right-border li">
		<p ng-click="pagedata.showstatus=true" class="margin-0 font12 color-999999 position-relative">
			<span class="order-ellipsis">预约状态</span>
		</p>
		<p class="margin0 marginTop4 activeColor">
			<span class="fontBold text" id="appoint_border">全部</span>
			<span class="number">({{pagedata.nownum || 0}})</span>
		</p>
	</div>
	<div class="select-member li">
		<p ng-click="pagedata.showbody=true" class="margin-0 font12 color-999999 position-relative">
			<span class="order-ellipsis">选择患者</span>
		</p>
		<p class="margin0 marginTop4 activeColor">
			<span class="fontBold text"  id="member_border">全部</span>
			<span class="number">({{pagedata.nownum || 0}})</span>
		</p>
	</div>
</div>
<div class="posi-border"></div>
<div style="height: 56px;width: 100%;"></div>
<div class="box tip" style="display: none;">
	<div class="padding12 marginTop12 font12 lineHeight20">
		<p class="marginBottom8 height18"><span style="float: left;">隐私说明</span><span class="tipHide" style="color: #C03E3E;float: right;">不再提示</span></p>
		<p>根据相关法律法规，为保护客人隐私，您只能查看本人及通过该账号为他人提交的预约记录，如需查看他人的完整预约记录，请退出当前登录切换账户后查看，请您谅解。</p>
	</div>
</div>
<div id="sliderSegmentedContent">
    <div id="view_all" class="pull-wrapper" style="position:static;">
        <div class="pull-border" style="position:static;padding-bottom:2.5rem">
            <div id="order_list">
			<div ng-repeat="item in pagedata.list" class="box margin12">
			<div class="row" style="margin:0">
				<div class="flex-1"><span class="card_title color-FFF font12">{{item.statustitle}}</span></div>
			</div>
			<ul class="marginTop24 row order_list_ul">
				<li class="flex-1">
					<p>订单类型</p>
					<p>预约门诊</p>
				</li>
				<li class="flex-1">
					<p>客人信息</p>
					<p>{{item.bodytitle}}</p>
				</li>
				<li class="flex-1">
					<p>医生信息</p>
					<p>{{item.workertitle}}</p>
				</li>
			</ul>
			<div class="row marginLeft12 marginTop24 paddingBottom16 lineHeight22" style="margin-right:0">
				<div class="color-999999 font10 flex-1">
					<p class="margin0">就诊时间：{{item.day}} {{item.ontime}}</p>
					<p class="margin0">下单时间：{{item.createtime}}</p>
					<p class="margin0 margin-t-4">订单编号：{{item.logsn}}</p>
				</div>
				<div style="align-self: flex-end;" class="marginRight12 color font12">
					￥
					<span class="font20">{{item.money}}</span>
				</div>
			</div>
			<div ng-if="item.baofile.length>0" class="fui-cell-title" style="padding:0 0.5rem">检查报告</div>
			<div ng-if="item.baofile.length>0" class="fui-cellone">
				<div class="fui-cellone-text" style="margin-top:0">
					<div class="weui_uploader">
						<div class="weui_uploader_bd" href="javascript:;" ng-click="previewImage(item.baofile[0],item.baofile);">
							<ul class="weui_uploader_files">
								<li ng-repeat="p in item.baofile track by $index" class="weui_uploader_file" style="margin-bottom:0;background-image:url({{tomedia(p)}})"></li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div ng-if="item.status<1" class="weui_btn weui_btn_plain_default" ng-click="pagedata.pay_submit(item.id)">
					去支付
			</div>
			<div ng-if="item.status==3" class="weui_btn weui_btn_plain_default" ng-click="pagedata.showremark=true;pagedata.nowremark=item.remark">
					查看问诊详情
			</div>
			</div>
			</div>
        </div>
		<div ng-if="!pagedata.list || pagedata.list.length==0" class="his-center" style="padding-top:1rem">
					<img style="height:5rem" src="../addons/jy_zhongyi/resource/images/nvhai.png"/>
					<div style="font-size:0.7rem;line-height:1.3rem">还未看诊，寻找合适的医生</div>
					<a style="font-size:0.7rem;color:#C03E3E" href="javascript:" ng-click="access_json('jy_zhongyi/worker_list//')">点这里找名医 >></a>
		</div>
    </div>
</div>
</div>
<div ng-if="pagedata.showstatus">
<div class="van-overlay weui-mask" style="z-index: 2007;">
</div>
<div class="order-dropdown-item popup ClickPayShowFather" id="order" style="z-index: 2008;">
<div class="van-popup van-popup--top popup">
<div style="height: 8px;background: #F5F5F6;"></div>
<ul class="background-ffffff">
<li ng-click="pagedata.nownum=pagedata.allstatusnum;pagedata.showstatus=false;pagedata.params.status='10';pagedata.get_list()" class="marginLeft12 marginRight12 border-bottom paddingTop16 paddingBottom15 text-center item ">全部</li>
<li ng-repeat="value in pagedata.order_status" ng-click="pagedata.nownum=value.num;pagedata.showstatus=false;pagedata.params.status=value.id;pagedata.get_list()" class="marginLeft12 marginRight12 border-bottom paddingTop16 paddingBottom15 text-center item color-C03E3E">{{value.title}}</li>
</ul>
</div>
</div>
</div>
<div ng-if="pagedata.showbody">
<div class="van-overlay weui-mask" style="z-index: 2007;">
</div>
<div class="order-dropdown-item popup ClickPayShowFather" id="order" style="z-index: 2008;">
<div class="van-popup van-popup--top popup">
<div style="height: 8px;background: #F5F5F6;"></div>
<ul class="background-ffffff">
<li ng-click="pagedata.nownum=pagedata.allstatusnum;pagedata.showbody=false;pagedata.params.bodyid='0';pagedata.get_list()" class="marginLeft12 marginRight12 border-bottom paddingTop16 paddingBottom15 text-center item ">全部</li>
<li ng-repeat="value in pagedata.bodys" ng-click="pagedata.showbody=false;pagedata.params.bodyid=value.id;pagedata.get_list()" class="marginLeft12 marginRight12 border-bottom paddingTop16 paddingBottom15 text-center item color-C03E3E">{{value.name}}</li>
</ul>
</div>
</div>
</div>
<div ng-if="pagedata.showremark" class="popup">
	<div class="popup-body">
		<div class="popup-center radius" style="background:#fff;">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showremark=false"></i>
			<div class='fui-content' style="padding:0.5rem">
				<div class="title bold">问诊详情</div>
				<div class="fui-cellone">
					<div class="fui-cellone-text" ng-bind-html="trust(pagedata.nowremark)"></div>
				 </div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script type="text/javascript">
scope.pagedata.pay_submit=function(id){
	scope.post_json('/yuyue_order/pay/id='+id,{},function(pay_id){
		scope.tool.pay(pay_id,function(res){
				if(res.type=='success'){
					scope.message(res.message,'success','/yuyue_order/');
				}else{
					scope.message(res.message,'success','/yuyue_order/');
				}
		},'','','/yuyue_order/','/yuyue_order/');
	});
}
scope.pagedata.get_list=function(){
		scope.tool.get_list('jy_zhongyi/yuyue_order/getlist/',true);
}
scope.pagedata.get_list();
scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_zhongyi/yuyue_order/getlist/');
}
</script>